#!/usr/bin/python
# -*- coding: utf8 -*-

import sys
from time import time
import fib1,fib2,fib3,fib4,fib5

def monitorFib(module,n):
    start = time()
    result = module.fib(n)
    elapsed = time()-start
    print "%s took %0.3f ms :%d (%s)" % (module.__name__,elapsed*1000.0,result,module.fib.__doc__)
    return elapsed

if __name__ == '__main__':
    if len(sys.argv) < 2:
        print u'请输入参数n\n'
    
    arg = sys.argv[1]
    arg = int(arg)
    print 'n=%d'%(arg)

    monitorFib(fib1,arg);
    #monitorFib(fib2,arg);
    monitorFib(fib3,arg);
    monitorFib(fib4,arg);
    monitorFib(fib5,arg);
